// 配置webpack的配置文件

module.exports = {
    webpack:(config)=> {
        config.output.library='reactApp';//打包输出额名
        config.output.libraryTarget='umd';//打包输出的类型
        config.output.publicPath='http://localhost:20000/';//修改输出地址
        return config;
    },
    devServer:(configFunction)=>{
        return function(proxy,allowedHost){
            const config = configFunction(proxy,allowedHost);
            config.port = '20000'
            config.headers = {
                "Access-Control-Allow-Origin":"*"
            }
            return config;
        }
    }
}